import Vue from 'vue'
import VueRouter from "vue-router"
import home from './components/home.vue'
import firstlist from './components/first-list'
import firstpage from './components/first-page.vue'

Vue.use(VueRouter)

export default new VueRouter({
    mode: 'history', //去除跳转的#号
    routes: [{
            path: '/',
            name: 'home',
            component: home
        },
        {
            path: '/home',
            name: 'home',
            component: home
        },
        {
            path: '/firstlist',
            name: 'firstlist',
            component: firstlist
        },
        {
            path: '/firstpage',
            name: 'firstpage',
            component: firstpage
        }
    ]
})